package com.example.backend.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import com.example.backend.service.WelcomeService;

@RestController
public class WelcomeController {

    @Autowired
    private WelcomeService welcomeService;

    @GetMapping("/")
    public String welcome() {
        return welcomeService.getWelcomeMessage();
    }

}